Flight Log OXP by Thargoid.
Updates by phkb (v1.09 and following)

A little OXP by forum request of "Newt_Othis" and others to keep a log of the last 100 systems visited by witchspace (including interstellar space). In-game, a list of the most recent 10 of those systems visited can be accessed by going either to the ship's interface screen (F4 whilst docked) or whilst in flight via the manifest screen (F5-F5) and from there on to the short range chart screen (F6).

The list holds the last 100 systems visited plus the current one is also noted. It also records the number of kills made whilst in the system and the net credit balance change whilst there (profit and loss, with losses being negative obviously). If the list contains at least one visited system, it can also be dumped out to the latest.log file from this screen (this will dump out the full log, up to 100 entries long).

Requires v1.79 or later of Oolite. It will not run on older versions.

--------------------------------------------------------------

License:

This OXP is released under the Creative Commons Attribution - Non-Commercial - Share Alike 3.0 license with the following clauses:

* Whilst you are free (and encouraged) to re-use any of the scripting, models or texturing in this OXP, the usage must be distinct from that within this OXP. Unique identifiers such as (but not limited to) unique shipdata.plist entity keys, mission variables, script names (this.name), equipment identity strings (EQ_), description list arrays and entity roles must not be re-used without prior agreement. Basically if it's unique or would identify or overwrite anything in the original OXP, then you may not re-use it (for obvious compatibility reasons).
* rebundling of this OXP within another distribution is permitted as long as it is unchanged. The following derivates however are permitted and except from the above:
	* the conversion of files between XML and openStep.
	* the merging of files with other files of the same type from other OXPs.
* The license information (either as this file or merged into a larger one) must be included in the OXP.
* Even though it is not compulsory, if you are re-using any sizable or recognisable piece of this OXP, please let me know :)

Image from http://simpleicon.com/note_book.html.

--------------------------------------------------------------

Instructions:


For those who have downloaded the OXP version, unzip the file, and then move the folder "Flight Log 1.08.oxp" to the AddOns directory of your Oolite installation. Then start the game up and the ships should be added. 

The OXZ version downloaded via the Expansion manager should be installed and operational directly. For a manual download, move the .oxz folder to the addons directory and restart the game.

--------------------------------------------------------------

Version history:

31/08/2010 - Version 1.00, initial release.
03/09/2010 - Version 1.01, amended scripting to better trim the log after reports of problems on some systems.
24/01/2011 - Version 1.02, added kill count and credit level change per system to log, and also corrected minor capitalisation item.
13/02/2011 - Version 1.03, removal of upper limit, to allow running with 1.75
15/09/2012 - Version 1.04, script tweak to add the flight log to the F4 menu on Oolite 1.77 or higher
16/09/2012 - Version 1.05, add a shipped dock check that was omitted accidentally in v1.04
24/01/2013 - Version 1.06, removed the F5-F5-F6 route when docked (F4 only now), and up'd the minimum Oolite to 1.77
11/02/2014 - Version 1.07, expand the storage to 100 systems, with just the last 10 being displayed in-game.
07/08/2014 - Version 1.08, script adjusted to run on startUpComplete rather than startUp, to allow for non-main station saves.
08/12/2014 - Version 1.09, exiting log now returns to system interfaces screen
			   added "use strict" to script file
			   added a screenID parameter to the mission.runScreen functions.
			   removed access to full log inflight (no longer recommended in 1.81), added item to manifest screen instead
27/02/2015 - Version 1.10, fixed bug where kills in system with ID 0 were not showing up on the log.
17/12/2015 - Version 1.11, small code cleanup items, added overlay background image.
                           Updated screenID's to enable BGS background sounds.
--------------------------------------------------------------

Acknowledgements:

With thanks to Newt_Othis for the original inspiration and Switeck for the bug report on the length trimming problem. Idea for adding kills and credits from UK_Eliter and others.

And thanks to Ironfist for the bug report on the 1.04 missing docked check.

Thanks to Neelix for the heads-up about the non-main station save glitch and the fix recommendation.